package cn.hwadee.muying.service;

import cn.hwadee.muying.entity.ServiceType;
import cn.hwadee.muying.mapper.ServiceTypeMapper;
import cn.hwadee.muying.commons.base.BaseService;
import org.springframework.stereotype.Service;
import cn.hwadee.muying.entity.User;
import cn.hwadee.muying.commons.page.MyPage;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

/**
 * <p>
 * 服务类型 服务实现类
 * </p>
 *
 * @author Mankind
 * @since 2018-08-06
 */
@Service
public class ServiceTypeService extends BaseService<ServiceTypeMapper, ServiceType> {

    @Autowired
    private ServiceTypeMapper serviceTypeMapper;


    public MyPage<ServiceType> list(MyPage<ServiceType> page, User cUser) throws Exception{
        List<ServiceType> serviceTypes = serviceTypeMapper.list(page,cUser);
        page.setRecords(serviceTypes);
        return page;
    }

}
